home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 801_900 / DISK0808 / DISK0808.ZIP / INSTALL.BAT next >
DOS Batch File  |  1987-05-18  |  2KB  |  54 lines

  1. echo off
  2. cls
  3. echo                       THE GENERAL LEDGER
  4. echo                          installation
  5. echo                                                                      V01.00
  6. echo          (c) Copyright 1985..1987 REMARKABLE ENTERPRISES LTD
  7. echo  
  8. if %199==99 goto mispar
  9. if %1==C: goto ok
  10. if %1==c: goto ok
  11. if %1==D: goto ok
  12. if %1==d: goto ok
  13. :mispar
  14. echo   Incorrect parameter
  15. echo The RUN line is INSTALL d:
  16. echo  where d is the letter corresponding to the hard disk you wish to
  17. echo install THE GENERAL LEDGER on
  18. goto theend
  19. :ok
  20. %1
  21. echo This installation will create a directory called \TGL on the hard disk %1
  22. echo  
  23. echo To abort hit CTRL C or CTRL BREAK and terminate the command file if you
  24. echo do not want to continue.
  25. pause
  26. echo Working....
  27. md \tgl >nul
  28. cd \tgl
  29. if not exist system.dbf goto docopy
  30. echo You appear to have The General Ledger Already installed on your Hard disk.
  31. echo  
  32. echo This installation will now update your existing system.
  33. echo  
  34. echo To abort hit CTRL C or CTRL BREAK and terminate the command file if you
  35. echo do not want to continue.
  36. pause
  37. echo Working...
  38. if exist system.old del system.old
  39. rename system.dbf system.old
  40. if exist environ.old del environ.old
  41. rename environ.dbf environ.old
  42. :docopy
  43. a:
  44. copy a:tgl.exe %1\tgl >nul
  45. copy a:tgl.int %1\tgl >nul
  46. copy a:subinst.bat %1\tgl >nul
  47. copy a:tgl.bat %1\ >nul
  48. md %1\tgl\help
  49. copy a:\help\*.hlp %1\tgl\help >nul
  50. %1
  51. cd \tgl
  52. subinst
  53. :theend
  54.